package sise.example;

import sise.world.World;
import sise.world.gui.MainFrame;
import sise.world.map.WorldMap;
import sise.world.utils.MapGenerator;
import sise.world.utils.SimulationConfiguration;

public class GuiExample {

	public static void main(String[] args) {
		// world
		World world = new World();
		WorldMap worldMap = new WorldMap();
		SimulationConfiguration cfg = new SimulationConfiguration(args);
		worldMap.setFields(MapGenerator.generateRandomMap(cfg));
		world.setWorldMap(worldMap, cfg);

		// gui
		MainFrame mainFrame = new MainFrame(world);
		mainFrame.setVisible(true);
	}

}
